from PIL import Image, ImageDraw, ImageFont

from wepapi.utils.encrypt import md5

# img = Image.new('RGB', (120, 30), color='white')
# draw = ImageDraw.Draw(img,mode='RGB')
# draw.text([20,3],'hhhhhhh','red',font=ImageFont.truetype('arial.ttf',28))
#
# with open('../static/img/code.png', 'rb') as f:
#     img.save('../static/img/code.png', 'png')

ss = md5(123)
print(ss)
